﻿<%@ WebHandler Language="C#" Class="Article" %>

using System;
using System.Web;

public class Article : IHttpHandler {
    private int articleID;
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/html";
        if (!int.TryParse(context.Request.QueryString["id"], out articleID))
            return;
        MatchIns.Model.TArticle model = new MatchIns.BLL.TArticle().GetModel(articleID);
        if (model == null) return;
        context.Response.Write(model.Content);
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}